<?php 
	defined('C5_EXECUTE') or die("Access Denied.");
	$content = $controller->getContent();	
				
	$ih = Loader::helper('image');
	$page = Page::getCurrentPage();
	$title = $page->getCollectionName();				
	$cLogo = null;
	if ($cLogoID = $page->getAttribute('projectestate_logo')) { 
		$cLogo = File::getByID($cLogoID);
	}
?>
	<div class="project_item">
	<?php if($cLogo):?>	
		<img src="<?php echo $cLogo->getRelativePath()?>"/>
	<?php else:?>
		<h3><?php echo $title;?></h3>
	<?php endif;?>
	</div>
	<div class="detail">	
		<div class="scroll-pane" id="pane1" style="height:258px; width: 200px;">
			<div><?php echo $content;?></div>
			<div class="meta">
				<p><span><?php echo $mainTypes['projectLocation'];?></span>: <?php echo $locations[$page->getAttribute('projectestate_location')];?></p>
				<p><span><?php echo $mainTypes['projectType'];?></span>: <?php echo $types[$page->getAttribute('projectestate_type')];?></p>
				<!--p><span><?php echo $mainTypes['projectNumberRoom'];?></span>: <?php echo $numberRooms[$page->getAttribute('projectestate_numberofroom')];?></p-->
				<p><span><?php echo t('Website')?></span>: <a href="<?php echo $page->getAttribute('projectestate_website');?>" title="<?php echo $title;?>" target="_blank"><?php echo $page->getAttribute('projectestate_website');?></a></p>
			</div>
		</div>
	</div>	